using System;
using System.Diagnostics;
using System.IO;
using System.IO.IsolatedStorage;
using System.Runtime.Serialization;

namespace Pegasus.Collections
{
	/// <summary>
	/// Extends the <see cref="IsolatedStorageHashtable"/> and binds the table to an 
	/// isolated stroage for the applicaiton.
	/// </summary>
	/// <seealso cref="IsolatedStorageHashtable"/>
	/// <seealso cref="IsolatedStorageFile"/>
	[Obsolete( "Use the Generic class Pegasus.Collections.Generic.DictionaryApplicationData", false )]
	[Serializable]
	public class ApplicationDataHashtable : IsolatedStorageHashtable
	{
		/// <summary>
		/// 
		/// </summary>
		protected ApplicationDataHashtable( SerializationInfo info, StreamingContext context ) :
			base( info, context )
		{
		}

		/// <summary>
		/// 
		/// </summary>
		/// <param name="storeName"></param>
		public ApplicationDataHashtable( string storeName ) :
			base( storeName, IsolatedStorageFile.GetMachineStoreForDomain() )
		{
		}
	}
}
